#ifndef ACTIONWIDGET_H
#define ACTIONWIDGET_H

#include <QWidget>
#include <QStackedWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLineEdit>
#include <QPushButton>
#include "InnerWorkComponent/chatlistwidget.h"

//声明使用
class FindWidget;
class FriendMassager;
class TalkWidget;
class ScanWidget;
class MyScanLineEdit;
class AllNetScanWidget;
class FriendRequestWidget;
//
namespace Ui {
class ActionWidget;
}

class ActionWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ActionWidget(QWidget *parent = nullptr);
    ~ActionWidget();

    FindWidget* GetFindWMsg();

    FriendMassager* GetFriendMsg();

    void setUserName(QString UserName);

//    TalkWidget* GetTalkMsg();

private slots:

    void on_InfoBtn_clicked();

    void on_FriendBtn_clicked();




public slots:
    void on_Find();

    void on_Scan();

    void on_ScanLineFocus();

    void LocalScanInfo();

public slots:

private:
    Ui::ActionWidget *ui;

    ChatListWidget      *ChatWidget;
    FriendMassager      *FriendMsg;
    FindWidget          *FindWMsg;
    ScanWidget          *ScanWMsg;

    AllNetScanWidget  *AllNetScanWMsg;
    FriendRequestWidget *FriendRequestMsg;

    QWidget        *HideWidget;


    void InitForUi();

    void LinkUiToUiSignalAndSlot();

    void LinkTcpSignalAndSlot();
};

#endif // ACTIONWIDGET_H
